package com.econ.powercloud.ems.pojo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @Author : zjf
 * @Description : 公司VO
 * @Date : 2021/12/7 14:41
 * @Modified by : zjf
 */
@Data
public class CompanyEditVO {
    @ApiModelProperty(value = "公司id(修改时必传)")
    private String id;

    @NotBlank(message = "公司名称不能为空")
    @Length(max = 64, message = "公司名称长度不能超过32个字符")
    @ApiModelProperty(value = "公司名称", required = true)
    private String name;

    @ApiModelProperty(value = "公司所属省份")
    private Integer province;

    @ApiModelProperty(value = "公司所属城市")
    private Integer city;

    @Length(max = 255, message = "描述信息长度不能超过255个字符")
    @ApiModelProperty(value = "描述信息")
    private String desc;

    @Length(max = 128, message = "公司地址长度不能超过128个字符")
    @ApiModelProperty(value = "公司地址")
    private String address;

    @NotNull(message = "公司类型不能为空")
    @Size(min = 1, message = "公司类型不能为空")
    @ApiModelProperty(value = "公司类型列表")
    private List<Integer> companyTypes;

    @Length(max = 20, message = "联系电话长度不能超过20个字符")
    @ApiModelProperty(value = "联系电话")
    private String phone;
}
